import {useState, useEffect} from 'react'

export default () => {
  const [starter, setStarter] = useState(undefined)
  useEffect(() => {
    setStarter(Date.now())
  }, [])
  //3秒以内，可认为很熟悉
  return () => Date.now() - starter <= 5000
}
